import Request from "../request";

export default {
    // 漫画分类信息
    getProductList: (data: Object) => Request.get('/api/product/getCtcategory', data),//获取产品列表
    addCategory: (data: Object) => Request.post('/api/cartoon/addCategory', data),//添加分类
    editCartoon: (data: Object) => Request.post('/api/product/editCtcategory', data),//修改分类
    deleteCartoon: (data: Object) => Request.post('/api/product/deleteCtcategory', data),//删除分类

    // 漫画信息
    addCartoon: (data: Object) => Request.post('/api/product/addCartoon', data),//添加漫画
    getCartoonList: (data: Object) => Request.get('/api/product/getCartoonList', data),//获取漫画列表
    getCartoonDetail: (data: Object) => Request.get('/api/product/getCartoonDetail', data),//获取漫画详情
    editProduct: (data: Object) => Request.post('/api/product/editCartoon', data),//修改漫画
    removeCartoon: (data: Object) => Request.post('/api/product/deleteCartoon', data),//删除漫画
    getChapterAll: (data: Object) => Request.get('/api/cartoon/getChapterList', data),//获取章节列表
    addChapter: (data: Object) => Request.post('/api/cartoon/addChapter', data),//添加章节
    addChapterPage: (data: Object) => Request.post('/api/cartoon/addChapterPage', data),//添加章节内容
  }